<?php
	class newsModel extends Model{
		//获取news新闻标题数据
		public function getchAll(){
		    $rs=$this->db->fetchAll("select * from news where pid=0");
		    return $rs;
	    }
    }
		
?>